System and method for interfacing with virtual storage

ABSTRACT

A management interface for a virtualized storage system including a virtualized logical disk object representing a virtual storage container, wherein the logical disk is an abstract representation of physical storage capacity provided by plurality of physical stores. A virtual disk object represents a virtual storage container. The virtual disk object is an abstract representation of one or more logical disk objects, the virtual disk object including an exposed management interface. Wherein the virtual disk object is managed through the management interface to select the one or more logical disk objects represented by the virtual disk object.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates, in general, to mass data storage, and,more particularly, to software, systems and methods for accessing andmanaging virtualized data storage.

2. Relevant Background

Recent years have seen a proliferation of computers and storagesubsystems. Demand for storage capacity grows by over seventy-fivepercent each year. Early computer systems relied heavily ondirect-attached storage (DAS) consisting of one or more disk drivescoupled to a system bus. More recently, network-attached storage (NAS)and storage area network (SAN) technology are used to provide storagewith greater capacity, higher reliability, and higher availability. Thepresent invention is directed primarily at NAS and SAN systems,collectively referred to as network storage systems, that are designedto provide shared data storage that is beyond the ability of a singlehost computer to efficiently manage.

To this end, mass data storage systems are implemented in networks orfabrics that provide means for communicating data with the storagesystems. Host computers or servers are coupled to the network andconfigured with several disk drives that cumulatively provide morestorage capacity or different storage functions (e.g., data protection)than could be implemented by a DAS system. For example, a serverdedicated to data storage can provide various degrees of redundancy andmirroring to improve access performance, availability and reliability ofstored data. A large storage system can be formed by collecting storagesubsystems, where each sub-system is managed by a separate server.

However, because the physical storage disks are ultimately managed byparticular servers to which they are directly attached, many of thelimitations of DAS are ultimately present in conventional networkstorage systems. Specifically, a server has limits on how many drives itcan manage as well as limits on the rate at which data can be read fromand written to the physical disks that it manages. Accordingly,server-managed network storage provides distinct advantages over DAS,but continues to limit the flexibility and impose high management costson mass storage implementation.

Some solutions provide a centralized control system that implementedmanagement services in a dedicated server. The management services couldthen span across various sub-systems in the network storage system.However, centralized control creates bottlenecks and vulnerability tofailure of the control mechanism. Accordingly, a need exists for astorage system management mechanism that enables storage management fromarbitrary points within the storage system. Further, a need exists forstorage management systems that implement management processes in amanner that is both distributed, yet capable of managing across multiplesub-systems in a network storage system.

A significant difficulty in providing storage is not in providing thequantity of storage, but in providing that storage capacity in a mannerthan enables ready, reliable access with simple interfaces. Largecapacity, high availability, and high reliability storage architecturestypically involve complex topologies of physical storage devices andcontrollers. By “large capacity” it is meant storage systems havinggreater capacity than a single mass storage device. High reliability andhigh availability storage systems refer to systems that spread dataacross multiple physical storage systems to ameliorate risk of data lossin the event of one or more physical storage failures. Both largecapacity and high availability/high reliability systems are implemented,for example, by RAID (redundant array of independent drive) systems.

Storage management tasks, which often fall on an information technology(IT) staff, often extend across multiple systems, multiple rooms withina site, and multiple sites. This physical distribution andinterconnection of servers and storage subsystems is complex andexpensive to deploy, maintain and manage. Essential tasks such as addingcapacity, removing capacity, as well as backing up and restoring dataare often difficult and leave the computer system vulnerable to lengthyoutages. Moreover, configuring and applying data protection, such asRAID protection, to storage is complex and cannot be readily changedonce configured.

Storage virtualization generally refers to systems that providetransparent abstraction of storage at the block level. In essence,virtualization separates out logical data access from physical dataaccess, allowing users to create virtual disks from pools of storagethat are allocated to network-coupled hosts as logical storage whenneeded. Virtual storage eliminates the physical one-to-one relationshipbetween servers and storage devices. The physical disk devices anddistribution of storage capacity become transparent to servers andapplications.

Virtualization can be implemented at various levels within a SANenvironment. These levels can be used together or independently tomaximize the benefits to users. At the server level, virtualization canbe implemented through software residing on the server that causes theserver to behave as if it is in communication with a device type eventhough it is actually communicating with a virtual disk. Server-basedvirtualization has limited interoperability with hardware or softwarecomponents. As an example of server-based storage virtualization, Compaqoffers the Compaq SANworks™ Virtual Replicator.

Compaq VersaStor™ technology is an example of fabric-levelvirtualization. In Fabric-level virtualization, a virtualizingcontroller is coupled to the SAN fabric such that storage requests madeby any host are handled by the controller. The controller maps requeststo physical devices coupled to the fabric. Virtualization at the fabriclevel has advantages of greater interoperability, but is, by itself, anincomplete solution for virtualized storage. The virtualizing controllermust continue to deal with the physical storage resources at a drivelevel.

Copending U.S. patent application Ser. No. 10/040,194, filed on evendate herewith and assigned to the assignee of the present invention isincorporated herein by reference. This application describes asystem-level storage virtualization system that implements highly fluidtechniques for binding virtual address space to physical storagecapacity. This level of virtualization creates new difficulties instorage management.

Interfaces to storage management systems reflect this complexity. From auser perspective, application and operating software express requestsfor storage access in terms of logical block addresses (LBAs). Thesoftware and operating system requests, however, are not valid for theindividual physical drives that make up network storage system. Acontroller receives the requests and translates them to disk commandsexpressed in terms of addresses that are valid on the disk drivesthemselves. The user interface implemented by prior network storagecontrollers implemented this logical-to-physical mapping, and sorequired knowledge of the physical disks that make up the storagesystem. As physical disks were added to, removed from, failed, orotherwise became inaccessible, the logical-to-physical mapping had to beupdated to reflect the changes. A need exists, therefore, for amanagement system for a truly virtualized mass storage systems in whicha user interfaces only to virtual entities and is isolated from theunderlying physical storage implementation.

SUMMARY OF THE INVENTION

Briefly stated, the present invention involves a management interfacefor a virtualized storage system including a virtualized logical diskobject representing a virtual storage container, wherein the logicaldisk is an abstract representation of physical storage capacity providedby plurality of physical stores. A virtual disk object represents avirtual storage container. The virtual disk object is an abstractrepresentation of one or more logical disk objects, the virtual diskobject including an exposed management interface. Wherein the virtualdisk object is managed through the management interface to select theone or more logical disk objects represented by the virtual disk object.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a logical view of a networked computer environment in whichthe virtualized storage system in accordance with the present inventionis implemented;

FIG. 2 illustrates a logical representation of a storage pool;

FIG. 3 shows a configuration of logical drives from volumes inaccordance with an embodiment of the present invention;

FIG. 4 illustrates a physical view of a networked computer environmentin which the virtualized storage system in accordance with the presentinvention is implemented;

FIG. 5 illustrates a storage cell shown in FIG. 4 in greater detail;

FIG. 6 shows a functional block-diagram of components of an alternativeembodiment storage cell;

FIG. 7 depicts data structures implementing an object-orientedmanagement model in accordance with the present invention;

FIG. 8 illustrates interfaces and interactions between objectimplementing an exemplary client-accessible virtual disk in accordancewith the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present invention generally involves a storage management system fora virtualized data storage system. A storage management system comprisesthe software, firmware, and hardware mechanisms that implement aninterface that enables a user to organize and present virtual disks to ahost computing system that uses the presented storage capacity. Onefeature of the management system in accordance with the presentinvention is that it creates these virtual disks from logical disksrather than from physical disks as was done by previous systems. Thelogical disks are themselves a virtualization of physical storagecapacity (e.g., disk drives). In this manner, the storage managementinterface in accordance with the present invention enables interactionin a way that is truly independent of the physical storageimplementation.

In the examples used herein, the computing systems that require storageare referred to as hosts. In a typical implementation, a host is anycomputing system that consumes vast quantities of data storage capacityon its own behalf, or on behalf of systems coupled to the host. Forexample, a host may be a supercomputer processing large databases, atransaction processing server maintaining transaction records, and thelike. Alternatively, the host may be a file server on a local areanetwork (LAN) or wide area network (WAN) that provides mass storageservices for an enterprise. In the past, such a host would be outfittedwith one or more disk controllers or RAID controllers that would beconfigured to manage multiple directly attached disk drives. The hostconnects to the virtualized SAN in accordance with the present inventionwith a high-speed connection technology such as a fibre channel (FC)fabric in the particular examples. Although the host and the connectionbetween the host and the SAN are important components of the entiresystem, neither the host nor the FC fabric are considered components ofthe SAN itself.

The present invention implements a SAN architecture comprising a groupof storage cells, where each storage cell comprises a pool of storagedevices called a disk group. Each storage cell comprises parallelstorage controllers coupled to the disk group. The storage controllerscoupled to the storage devices using a fibre channel arbitrated loopconnection, or through a network such as a fibre channel fabric or thelike. The storage controllers are also coupled to each other throughpoint-to-point connections to enable them to cooperatively manage thepresentation of storage capacity to computers using the storagecapacity.

The present invention is illustrated and described in terms of adistributed computing environment such as an enterprise computing systemusing a private SAN. However, an important feature of the presentinvention is that it is readily scaled upwardly and downwardly to meetthe needs of a particular application.

FIG. 1 shows a logical view of an exemplary SAN environment 100 in whichthe present invention may be implemented. Environment 100 shows astorage pool 101 comprising an arbitrarily large quantity of storagespace from which logical disks (also called logical units or virtualdisks) 102 are allocated. In practice, storage pool 101 will have somefinite boundaries determined by a particular hardware implementation,however, there are few theoretical limits to the size of a storage pool101.

Within pool 101 logical device allocation domains (LDADs) 103 aredefined. LDADs correspond to a set of physical storage devices fromwhich virtual disks 102 may be allocated. Virtual disks 102 do not spanLDADs 103 in the preferred implementations. Any number of LDADs 103 maybe defined for a particular implementation as the LDADs 103 operatesubstantially independently from each other. Virtual disks 102 have aunique identification within each LDAD 103 that is assigned uponcreation of a virtual disk 102. Each virtual disk 102 is essential acontiguous range of logical addresses that can be addressed by hostdevices 105, 106, 107 and 109 by mapping requests from the connectionprotocol used by the hosts to the uniquely identified virtual disk 102.

Some hosts such as host 107 will provide services of any type to othercomputing or data processing systems. Devices such as client 104 mayaccess virtual disks 102 via a host such as server 107 to which they arecoupled through a LAN, WAN, or the like. Server 107 might provide fileservices to network-connected clients, transaction processing servicesfor a bank automated teller network, telephone call processing servicesand the like. Hence, client devices 104 may or may not directly use thestorage consumed by host 107. It is also contemplated that devices suchas computer 106 and wireless device 105, which are also hosts, maylogically couple directly to virtual disks 102.

A SAN manager appliance 109 is coupled to a management logical disks(MLD) 111 which is a metadata container describing the logicalstructures used to create virtual disks 102, LDADs 103, and otherlogical structures used by the system. A portion of the physical storagecapacity available in storage pool 101 is reserved as quorum space 113and cannot be allocated to LDADs 103, hence cannot be used to implementvirtual disks 102. In a particular example, each physical disk thatparticipates in storage pool 101 has a reserved amount of capacity(e.g., the first “n” physical sectors) that are designated as quorumspace 113. MLD 111 is mirrored in this quorum space of multiple physicaldrives and so can be accessed even if a drive fails. In a particularexample, at least one physical drive is associated with each LDAD 103includes a copy of MLD 111 (designated a “quorum drive”). SAN managementappliance 109 may wish to associate information such as name strings forLDADs 103 and virtual disks 102, and timestamps for object birthdates.To facilitate this behavior, the management agent uses MLD 111 to storethis information as metadata. MLD 111 is created implicitly uponcreation of each LDAD 103.

Quorum space 113 is used to store information including physical storeID (a unique ID for each physical drive), version control information,type (quorum/nonquorum), RSS ID (identifies to which RSS this diskbelongs), RSS Offset (identifies this disk's relative position in theRSS), Storage Cell ID (identifies to which storage cell this diskbelongs), PSEG size, as well as state information indicating whether thedisk is a quorum disk, for example. This metadata PSEG also contains aPSEG free list for the entire physical store, probably in the form of anallocation bitmap. Additionally, quorum space 113 contains the PSEGallocation records (PSARs) for every PSEG on the physical disk. The PSARcomprises a PSAR signature, Metadata version, PSAR usage, and anindication a RSD to which this PSEG belongs.

CSLD 114 is another type of metadata container comprising logical drivesthat are allocated out of address space within each LDAD 103, but that,unlike virtual disks 102, span multiple LDADs 103. Preferably, each LDAD103 includes space allocated to CSLD 114. CSLD 114 holds metadatadescribing the logical structure of a given LDAD 103, including aprimary logical disk metadata container (PLDMC) that contains an arrayof descriptors (called RSDMs) that describe every RStore used by eachvirtual disk 102 implemented within the LDAD 103. The CSLD 111implements metadata that is regularly used for tasks such as diskcreation, leveling, RSS merging, RSS splitting, and regeneration. Thismetadata includes state information for each physical disk thatindicates whether the physical disk is “Normal” (i.e., operating asexpected), “Missing” (i.e., unavailable), “Merging” (i.e., a missingdrive that has reappeared and must be normalized before use), “Replace”(i.e., the drive is marked for removal and data must be copied to adistributed spare), and “Regen” (i.e., the drive is unavailable andrequires regeneration of its data to a distributed spare).

In accordance with the present invention, the storage capacity isvirtualized at a very low level, preferably at a level that is notnormally accessible to the management interface. In practice, storagecapacity is allocated to logical devices or logical units (LUNs) orvirtual disks which are the most primitive or basic container presentedto the storage management system. The mechanisms that map LUNs tophysical resources occur within the storage controller(s) themselves.Storage users configure virtual drives using the available LUNs, notphysical drives as in prior approaches. LUNs may comprise parts ofdifferent physical drives, a single physical drive, or multiple physicaldrives to meet the needs of a particular application, and withoutimpacting the operation of the overlying management processes.

Each of the devices shown in FIG. 1 may include memory, mass storage,and a degree of data processing capability sufficient to manage anetwork connection. The computer program devices in accordance with thepresent invention are implemented in the memory of the various devicesshown in FIG. 1 and enabled by the data processing capability of thedevices shown in FIG. 1.

To understand the scale of the present invention, it is contemplatedthat an individual LDAD 103 may correspond to from as few as four diskdrives to as many as several thousand disk drives. In particularexamples, a minimum of eight drives per LDAD is required to supportRAID-1 within the LDAD 103 using four paired disks. virtual disks 102defined within an LDAD 103 may represent a few megabytes of storage orless, up to 2 TByte of storage or more. Hence, hundreds or thousands ofvirtual disks 102 may be defined within a given LDAD 103, and thus servea large number of storage needs.

FIG. 2 shows a logical view of constituents of a storage pool 101.Physical storage capacity is represented as a plurality of volumes 201and 202. Volumes 201 and 202 are themselves abstractions of physicaldisk drives in that a volume comprises metadata that describes storagecapacity on a physical disk drive. A volume will indicate, for example,the quantity of storage provided by a particular physical disk drive aswell as other metadata described hereinafter.

This abstraction enables volumes 201 or 202 to present storage capacityin arbitrary units called physical segments (PSEGs). In contrast, aphysical disk drive presents its capacity in terms of number of sectorsor device-specified logical block addresses. Volumes 201 representphysical storage capacity that has been allocated to a particular LDAD103. Volumes 202 represent physical storage capacity that exists instorage pool 101, but have not been added to an LDAD 103. In aparticular embodiment, virtual disks 102 can only be configured fromvolumes 201, whereas a volume 202 can be added to existing virtual disks102 by moving the volume 202 into an LDAD 103 (thereby making it avolume 201).

Each virtual disk 102 represents a virtual address space that isavailable for storing blocks of user data. An virtual disk 102 comprisesone or more than one logical drives 301 shown in FIG. 3. In FIG. 3, aset of six volumes labeled V1 through V6, corresponding to six physicaldisk drives, are used to form three logical drives 301. While it iscontemplated that in many cases a set of volumes 201 may actually beconfigured as a single logical disk 301, the present invention enablesthe capacity of each volume 201 to be divided and spread out amongst anynumber of logical drives 301. A logical disk 301 may take an equalnumber of PSEGs from each volume 201, or may take an unequal number ofPSEGs as shown in FIG. 3. The number of volumes 201 used by each logicaldisk 301 is determined in part by the data protection rules for thatlogical disk, but a larger number of volumes 201 may be used to improveutilization or performance.

A logical disk 301 comprises one or more redundant stores (RStore) whichare the fundamental unit of reliable storage in the system of thepresent invention. An RStore comprises an ordered set of PSEGs withassociated redundancy properties and is contained entirely within asingle redundant store set (RSS). By analogy to conventional systems,PSEGs are analogous to physical disk drives and each RSS is analogous toa RAID storage set comprising a plurality of physical disk drives.

An RSS comprises a subset of physical disks in an LDAD 103, such as theset of six volumes shown in FIG. 3. In preferred implementations, an RSSincludes from six to eleven physical drives (which can changedynamically), and the physical drives may be of disparate capacities.Physical drives within an RSS are assigned indices (e.g., 0, 1, 2, . . ., 11) for mapping purposes. They may be further organized as pairs(i.e., adjacent odd and even indices) for RAID-1 purposes.

FIG. 4 illustrates a physical implementation of virtualized storage inaccordance with the present invention. Network 401, such as a fibrechannel fabric, interconnects a plurality of storage cells 403. Storagecells 403 are accessible through fabric 401, or by management appliance109 through LANs/WANs 407. Storage cells 403 essentially implement astorage pool 101. The number of storage cells that can be included inany SAN is primarily limited by the connectivity implemented by fabric401. A fabric comprising even a single fibre channel switch caninterconnect 256 or more ports, providing a possibility of hundreds ofstorage cells 403 in a single storage pool 101.

Host 413 includes adapter hardware and software to enable a connectionto fabric 401. The connection to fabric 401 may be through an opticalcoupling or more conventional conductive cabling depending on thebandwidth requirements. A host adapter will often be implemented as aplug-in card on a host computer system. A host 413 may implement anynumber of host adapters to provide as many connections to fabric 413 asthe hardware and software support.

As shown in FIG. 5, each storage cell 403 in the preferred embodimentcomprises a pair of network storage controllers (NSCs) 501 coupled by afibre channel arbitrated loop (FCAL) to a plurality of hard diskslocated in disk cabinet 503. NSC 501 implements a network interface toreceive storage access requests from hosts as well as fibre channelarbitrated loop ports to connect to storage device in cabinet 503. NSCs501 are coupled together over a high-speed connection such as a fibrechannel point-to-point connection. While the particular embodiments areillustrated with fibre channel communication links, any communicationprotocol and hardware that provides sufficient bandwidth for aparticular application may be used, including proprietary hardware andprotocols.

FIG. 6 illustrates a functional model of a storage cell 403 in greaterdetail. In the example of FIG. 6, storage cell 403 includes NSCs 501 toprovide redundancy. NSCs 501 are implemented microcomputers having amicroprocessor and memory, as well as a plurality of fibre channel ports602, 603 and 604. Host adapter ports 602 provide an interface to fabric401 (shown in FIG. 5) and are implemented as FC N_Ports in a particularexample. Each Host adapter port handles login to fabric 401, and isassigned a fabric-unique port ID in the login process. Dual host portconnections on each NSC provide redundancy.

Any number of FCAL ports 603 may be implemented in each NSC 501,although four FCAL ports 603 per NSC 601 are used in the exemplaryimplementation. FCAL ports 603 are used to connect to drives 605 whichcomprise fiber channel drives. It should be understood that a variety ofconfigurations are possible. For example, rather than an FCALconfiguration, a fibre channel fabric using a switch could be used tocouple to drives 605. The particular FCAL implementation shown allows upto 124 drives in each of two FCAL loops (248 drives per storage cell403), where each loop is accessible by either NSC 501 to provideredundant connectivity. As each drive 605 may implement from 10 GB to100 GB or more of storage capacity, a single storage cell 403 mayimplement vast quantities of storage. All of the storage that isaccessible through a particular pair of NSCs 603 is considered to bewithin the storage pool 101 in which LDADs 103 can be implemented. Whilea SAN may include multiple storage cells 403, each cell 403 essentiallyimplements and independent storage pool 101.

Each disk drive 605 is represented as a plurality of equal-sizedphysical segments. In a particular example, each physical segment (PSEG)comprises 6096 contiguous sectors, or 2 Mbyte of storage capacity. A 40Gbyte drive will, therefore, provide 10K PSEGs, whereas an 80 Gbytedrive will provide 80K PSEGS. By decomposing physical drives intouniform-sized atomic units (PSEGs), the system can use PSEGs in a mannerakin to how prior systems used drives. Essentially, PSEGs are treated asan atomic unit of storage rather than a physical drive. Because of this,the processes that manipulate data to, for example, implement parity,mirroring, striping, leveling, failure recovery and the like operate onmuch smaller units (PSEGs) rather than on entire drives as was done inthe past. PSEGs are allocated to a particular storage task rather thandrives. This atomicity increases the granularity with which the physicalstorage resources can be applied to a particular task, resulting in anincreased flexibility in implementation of a particular virtual disk102.

Specifically, drives 605 within a given storage cell 403 may vary incapacity as the present invention includes mechanisms that efficientlyuse all storage capacity. Moreover, drives 605 that are involved in theimplementation of a particular virtual disk 102 may vary in capacitywhile at the same time efficiently using the disk capacity. This allowsgreat flexibility in populating drives 605 so that the most cost andperformance efficient drives can be selected at any given time, andstorage capacity can grow or shrink incrementally without requiringreplacement of drives 605.

FIG. 7 illustrates management relationships between various objectsimplemented in a management interface in accordance with the presentinvention. In a preferred implementation, the present invention isimplemented using object-oriented programming techniques by defining aset of classes that describe various logical entities that will beimplemented (or instantiated) in operation. Classes generically defineinterfaces for communication, methods describing behavior and variablesdescribing properties pertaining to a particular kind of thing. Theinstance of a class (or object) includes specific interfaces, methodsand variables corresponding to a particular thing that the instantiatedobject represents.

As shown in FIG. 7, the storage management system in accordance with thepresent invention is implemented as a collection of persistent objects701, and logical objects 702 implemented within memory space 715.Persistent objects 701, because they represent tangible hardware, arenot normally created and destroyed through the management interface, butinstead are managed automatically upon detection of hardware changes.Memory space 715 is memory space within a single computing device suchas NSC 601 in a particular example, however, objects 701 and 702 couldbe implemented in separate computing systems using object-orienteddistributed processing methods such as CORBA technology and the like. Anetwork storage controller 501 is responsible for creating and managingpersistent objects 701 including a network storage controller object711, a physical store object 712, and a physical device object 713.Logical objects 702 are managed by a SAN management appliance 710 thatimplements management agent processes.

Physical store object 712 represents a particular physical disk 605.Physical device object 713 represents a device implemented by one ormore physical stores objects 712. A physical device 713 differs from aphysical store 712 in that it includes interfaces, methods and variablesdescribing a control interface to the one or more physical stores itcontains. Hence, it is not necessary to define or instantiate a physicaldevice object 713 until it contains at least one physical store 712.

Network storage controller object 711, volume object 721 and physicaldevice object 713, many of which may be instantiated in any givenapplication, represent physical entities and so are preferablymaintained persistently in persistent store 705. Persistent objects 701will exist even during a system shutdown, and in event of a component orcommunication failure, can be re-instantiated to their state before thefailure. Persistent store 705 is not a single data store in mostimplementations. The persistent knowledge required to maintain objectsis stored in metadata objects known only to the storage cell (i.e., NSC501, as required to meet the needs of a particular application.

NSC object 711 includes attributes and methods that represent thephysical state, configuration, and characteristics of a particular NSC601. This information includes, for example, port identificationinformation used to address the NSC, information indicating where theNSC is physically installed (e.g., a cabinet number, room number, orhost computer name) and the like. The methods implemented by NSC object711 include methods for reading or getting the attributes and setting orwriting the attributes. An NSC.login( ) method performs a security checkand login for a particular management agent. An NSC.logout( ) methodperforms logout of the management agent. These security measures make itmore difficult for a malicious or malfunctioning entity to use storageresources. A variety of maintenance and diagnostic routines may beimplemented within the firmware of an NSC. A method“NSC.maintenance_invoke_routine( )” is used to request the target NSC toexecute a particular maintenance routine identified by the arguments.This allows predetermined maintenance routines to be executed remotely.Any results of the routine execution are returned in a response, or theroutine may itself generate notifications or messages indicatingresults.

Physical device object 713 implements methods including aPHYSICAL_DEVICE.get_condition( ) method that returns a value indicatinga condition attribute of the target physical device (e.g., normal,degraded, not present, and the like). APHYSICAL_DEVICE.get_physical_stores( ) method returns a list of handlesof the physical store objects 712 that are accessible through the targetphysical device object 713. A PHYSICAL_DEVICE.get_physical_stores_count() method returns the count of physical store handles (i.e., the numberof physical store objects 712) that can be accessed through the targetphysical device object 713. PHYSICAL_DEVICE.get_type( ) returns a typeattribute of the target Physical Device. The type attribute indicates,for example, that the physical device is a fibre channel disk or someother type of device.

Physical store object 712 contains attributes that describe the physicalcharacteristics of a disk drive 605 (e.g., capacity status, SCSI andFibre channel attributes), however, it has some logical informationassociated with it as well. That logical information is not accessibleif no storage cell has been formed or if the storage cell cannot beaccessed (e.g. from an NSC 601 that is not participating in the storagecell). In addition to methods for getting and setting attribute values,a physical store object 712 includes methods for indicating the state ofa corresponding disk drive (e.g., failed, not failed. In a particularexample, a method for indicated a predicted but not yet realized failureis implemented. Other methods enable commands to be sent to andresponses received from the corresponding disk drive 605.

Logical objects 702 comprise various objects that represent logical datastructures implemented in accordance with the present invention. Logicalobjects 702 include a volume object 721 that represents physical storagecapacity as indicated by the metadata (e.g., PSARs) stored on individualdisk drives. Hence, volume objects 721 are derived from physical storeobjects 712 and physical device objects 713. Volume objects represent aplurality of PSEGs from a particular storage device that are availablefor data storage, and may include all or only some of the PSEGs on thecorresponding disk drive. In a particular example, volume objects definemethods for getting and setting attribute values such as valuesindicating which LDAD 102 the volume belongs to. Other methods allowcreation of the volume object 721 as well as destruction (i.e., erasure)of the volume object 721.

A virtual disk is actually conceptual entity that a user sees as theentity storing data and is implemented by an interacting group oflogical objects 702. Each of the objects include methods forself-creation and destruction, as well as get and set methods formanipulating various attributes of the particular logical object.Specifically, a storage cell virtual disk 102 comprises logical diskobject(s) 722, an SCVD object 725, derived disk object(s) 723, andpresented disk object(s) 724. A given LDAD 103 is represented by an LDADobject 726 and each storage cell 403 is represented by a storage cellobject 727. Storage cell clients such as a storage server 107 ormanagement agent 710 are represented by instances of storage cell clientobjects 728.

Each instance of an object 702 includes attribute values that arespecific to the entity that is represented including handles forcommunicating with other objects and attributes that indicate currentstate of the represented entity. Each instance of an object 702 alsoincludes methods that enable manipulation of the attributes as well asmethods that implement behaviors such as reading and writing data orcreation/destruction of logical objects 702 including selfcreation/destruction.

Logical disk objects 722 represent virtualized storage capacityimplemented by RSSs that are combined to form a logical disk using PSEGsrepresented by volume objects 721. Logical disk objects 722 are thefundamental storage unit accessible by the storage management system andare analogous to physical disk drives in prior storage managementsystems.

In an initial implementation, each virtual disk comprises only onelogical disk object 722, although it is contemplated that many logicaldisk objects 722 could be readily provided. It should be understood,however, that SCVD objects 725 are unique and separate objects fromlogical disk objects 722 even though there may be a one-to-onerelationship between them in many instances.

Logical disk objects 722 include methods for getting and settingattribute values such as allocated capacity, reserved capacity,redundancy type, and object handles. Logical disk objects 722 alsoinclude methods that effect creation and destruction of logical diskobjects 722. In addition to these management functions, logical diskobjects 722 include methods that interact with physical stores 712 andphysical devices 713 for reading and writing data to the storagecapacity they represent.

The SCVD object 725 adds specified virtual disk performance behaviorssuch as caching behavior. SCVD object is accessible by management agenthost 728, but not directly accessible by users. To be clear, unlike the“virtual disk” which is a conceptual entity and therefore not a logicalobject that interacts with hosts 728, the SCVD object is a logicalobject with defined interfaces and behaviors. SCVD object 725 interfacesto derived disk object 723 as indicated in FIG. 8.

The derived disk object 723 adds protocol personality (e.g., EIDE, SCSI,Fiber Channel, CI, etc.) to a block-store represented by a logical disk722. In other words, the derived unit object 723 supplies the I/Oprotocol behavior for the virtual disk. When a virtual disk is presentedto a host via presented disk object 724, a derived unit is created toadd semantics (e.g., SCSI) to the block storage provided by the virtualdisk. In the initial implementation only a single derived disk object isprovided per virtual disk. If desired, more than one derived disk object723 can be allowed per virtual disk, such as in cases where anadministrator wants to treat the logical disk 722 as independent disksthat happen to have shared contents. The logical disk 722 could then beimplemented with a SCSI-protocol interface and a separate Fibre-channelprotocol interface.

The presented disk object 724 provides an association between a storagecell client object 728 or a group of storage cell client objects 728 anda derived disk 723. This association allows a client represented by thestorage cell client object 728 to access a derived disk 723 and itsunderlying storage capacity. It is preferred that virtual disks beselectively presented to clients so that each client will be able toaccess a specified set of virtual disks, but not access others. MLDs111, in contrast, do not require presented disk objects because they arenot accessible to clients. A derived disk 723 may be associated withmultiple presented disks 724 (e.g., one for each client to which thevirtual disk is presented).

The object-oriented management model illustrated in FIG. 7 enables acomplete separation of the virtual disk presented to a client and thephysical disk drives used to implement the store. Significantly, thephysical storage capacity is virtualized by the logical disk object 722such that a management agent 710 does not manipulate any physicalobjects when creating or changing characteristics of virtual disks. Anexemplary implementation of a virtualization system that supports thecreation of logical disks 722 is described in greater detail inco-pending U.S. patent application Ser. No. 10/040,194 filedconcurrently herewith entitled “SYSTEM AND METHOD FOR ATOMIZING STORAGEand assigned to the Assignee of the present invention, the disclosure ofwhich is incorporated herein by reference. Because the management tasksare distributed amongst NSCs 601 and management agents 710, managementtasks can be performed from anywhere in the network storage system.

Referring to FIG. 8, interfaces between entities shown in FIG. 7 areillustrated for a particular instance of a virtual disk. Some of thevarious methods within each object define interfaces that enablecommunication with interfaces of other objects. An interface is exposedwhen it is made available for use by another object. Hence, mostinterfaces are exposed for some, but not all objects in the system.

The management object can create instances of logical disk(s) 722, SCVDobjects 725, derived disks 723 and presented disk objects 724 andassociate these with each other to implement a virtual disk as observedby a user. Each of objects shown in FIG. 7 does not need to exposeinterfaces directly to storage cell client 728 that represents a hostsystem (e.g., a system that is accessing stored data). Instead, hostsystems access stored data through an exposed interface of the presenteddisk object 724. Similarly, logical disk objects 722 and derived diskobjects 723 need not expose their interface directly to a storage cellclient 728 representing a host. However, each object type includesinterfaces exposed to the management agent.

In operation, the mechanisms, software, firmware and data structures ofthe present invention enable management of virtualized storage withenormous flexibility. Storage capacity is realized and managed in amanner that is essentially independent of the physical disks on whichthe data exists. Over very short periods of time the entire set of diskscan be changed. Movement of storage location is highly fluid as are theredundancy properties associated with any stored data.

Storage management functions are implemented within the network storagecontrollers themselves rather than in a centralized server attached tothe network storage controllers. In other words, the logical constructsthat represent the storage system are present in the memory of thenetwork storage controller. Any authorized device that can access thenetwork storage controller can therefore send management commands to,for example, create, modify, or destroy SCVDs 102, LDADs 103, and thelike. This enables management to be implemented from arbitrary locationswithin the storage system itself.

The present invention is particularly described in terms of a set ofalgorithms embodied as firmware running on storage controller hardware.These mechanisms are used to create and present virtual storage devices,i.e., SCVDs 102, to an arbitrary set of hosts connected to the storagecontroller via a network connection such as a LAN, WAN, or connectiondirectly to the storage area network (SAN) to which the physical storagedevices are connected. Users request various operations via a graphicaluser interface (GUI) or command line interface (CLI) using a collectionof public and private protocols.

Although the invention has been described and illustrated with a certaindegree of particularity, it is understood that the present disclosurehas been made only by way of example, and that numerous changes in thecombination and arrangement of parts can be resorted to by those skilledin the art without departing from the spirit and scope of the invention,as hereinafter claimed.

1. A system for managing virtualized data storage, comprising: avirtualized logical disk object representing a virtual storagecontainer, wherein the virtualized logical disk is an abstractrepresentation of physical storage capacity provided by plurality ofphysical stores; and a virtual disk object representing a virtualstorage container, wherein the virtual disk object is an abstractrepresentation of one or mere virtualized logical disk objects, thevirtual disk object including an exposed management interface; andwherein the virtual disk object is managed through the managementinterface to select the one or more logical disk objects represented bythe virtual disk object.
 2. The system of claim 1 further comprising: aderived disk object coupled to the logical disk object and includingmethods and data structures configured to add storage protocol to thelogical disk object.
 3. The system of claim 2 further comprising: apresented disk object coupled to the derived disk object and includingmethods and data structures configured to expose an virtual diskinterface to selected clients.
 4. The system of claim 1 furthercomprising: a network storage controller including a processor andmemory, wherein the logical disk object and virtual disk object areimplemented in memory of the network storage controller.
 5. The systemof claim 4 further comprising a set of persistent objects managed by thenetwork storage controller, wherein the persistent objects representhardware resources of the network storage system.
 6. The system of claim1, further comprising: a physical store object representing a physicalstorage device; and a volume object representing storage capacity thatcan be allocated from the storage device represented by the physicalstore object, wherein the volume object presents a logical abstractionof the physical store object.
 7. The system of claim 1 furthercomprising: a storage cell client object representing a host managementagent, wherein the storage cell client object has an interface forcoupling to the management interface.
 8. The system of claim 1 whereinthe storage cell client object is capable of representing a hostmanagement agent located in any network-coupled computing device.
 9. Amethod for facilitating management of virtual storage in a storage areanetwork enabling a user can flexibly present a virtual disk to a host,comprising: connecting a host to a network storage controller (NSC) viaa host agent capable of communicating command-response traffic withlogical objects implemented in the network storage controller; creatinga logical disk object representing a virtual storage container, whereinthe logical disk is an abstract representation of physical storagecapacity provided by plurality of physical stores; adding a storageprotocol to the logical disk object using a derived disk object inresponse to a user protocol selection; associating the derived objectwith a host using a presented disk object referencing the host agentresponse to a user host selection; and creating a virtual disk objectcomprising the logical disk object, the derived disk object and thepresented disk object.
 10. The method of claim 9, further includingproviding the user protocol selection and the user host selection via amanagement console having a computer interface and communicating theuser selections to the host agent.
 11. A method for managing virtualstorage in a storage area network, the method comprising: providing atleast one network storage controller coupled to a plurality of physicaldisk drives implementing physical storage capacity; creating a physicalstore object representing each of the plurality of physical disk drives;specifying at least some of the plurality of physical disk drives forinclusion in a storage cell; verifying that sufficient physical storeobjects were specified to satisfy the requested device failureprotection level before creating a storage cell object; and creating thestorage cell object representing the storage cell wherein the physicalstore objects corresponding to the specified physical disk drives areincluded in the created storage cell.
 12. The method of claim 11 whereinthe act of specifying comprises: obtaining user specifications of arequired failure protection level; and obtaining user specifications ofa set of physical disk drives.
 13. The method of claim 12 furthercomprising creating a volume record on each of the physical disk drivesincluded in the created storage cell.
 14. The method of claim 11 furthercomprising creating a management logical disk object storing metadatadescribing the created storage cell object.
 15. The method of claim 11further comprising: verifying that at least four physical store objectswere specified before creating the storage cell object.
 16. The methodof claim 12 further comprising: verifying that ports on the networkstorage controller are operational before creating the storage cellobject.
 17. The method of claim 12 further comprising: verifying thatall of the selected physical store objects are in an operationalcondition before creating the storage cell object.